# Maintainer: Imitatory
pkgname=arcalvus
pkgver=2.0.0
pkgrel=1
pkgdesc='CLI Password-Manager'
url='https://notabug.org/Imitatory/arcalvus'

arch=('x86_64')
license=('GPL-3.0')
depends=('fzf' 'gnupg')
makedepends=('patchelf')

build() {
    cd "$srcdir"

    python -m venv venv
    source venv/bin/activate

    pip install -r requirements.txt
    pip install nuitka

    nuitka --standalone arcalvus.py
}

package() {
    install -dm755 "$pkgdir/opt/arcalvus"
    cp -r "arcalvus.dist/"* "$pkgdir/opt/arcalvus/"

    install -Dm755 "../arcalvus.sh" "$pkgdir/usr/bin/arcalvus"
}

